package com.changgou.user.dao;

import com.changgou.user.pojo.User;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

/****
 * @Author:admin
 * @Description:User的Dao
 * @Date 2019/6/14 0:12
 *****/
@Repository
public interface UserMapper extends Mapper<User> {

    // 添加用户积分
    @Update("update tb_user set points = points + #{points} where username = #{username}")
    int addPoints(Integer points, String username);

}









